package com.itheima.a01polymorphismdemo01;

/***
 *@title Teacher
 *@description <TODO description class purpose>
 *@author 12468
 *@version 1.0.0
 *@create 2024/10/23 0:32
 **/
public class Teacher extends Person {

    public Teacher() {
    }

    public Teacher(String name, int age) {
        super(name, age);
    }

    @Override
    public void show() {
        System.out.println("老师的信息" + getName() + ", " + getName());
    }
}
